﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using StuApart;

namespace StuApart
{
    public partial class frmMain : Form
    {
        public frmMain()
        {
            InitializeComponent();
        }
        public static string userName = "";
        private void Form1_Load(object sender, EventArgs e)
        {
            toolStripStatusLabel2.Text = "当前登录用户：" + Common.DataBase.userName;
            toolStripStatusLabel3.Text = "当前日期：" + DateTime.Now.ToShortDateString();
        }
        // 下载于www.mycodes.net
        private void toolStripMenuItem5_Click(object sender, EventArgs e)
        {
            Student Students = new Student();
           Students.Owner = this;
           Students.Show();
         
        }

        private void toolStripMenuItem6_Click(object sender, EventArgs e)
        {
            Apartment Apartment = new Apartment();
            Apartment.Owner = this;
            Apartment.Show();
        }

        private void toolStripMenuItem7_Click(object sender, EventArgs e)
        {
            ClassInfo ClassInfo = new ClassInfo();
            ClassInfo.Owner = this;
            ClassInfo.Show();
        }

        private void toolStripMenuItem8_Click(object sender, EventArgs e)
        {
            Department Department = new Department();
            Department.Owner = this;
            Department.Show();
        }

        private void toolStripMenuItem9_Click(object sender, EventArgs e)
        {
            StudentIn StudentIn = new StudentIn();
            StudentIn.Owner = this;
            StudentIn.Show();
        }
        // 下载于www.mycodes.net
        private void toolStripMenuItem10_Click(object sender, EventArgs e)
        {
            ForIn ForIn = new ForIn();
            ForIn.Owner = this;
            ForIn.Show();
        }

        private void toolStripMenuItem11_Click(object sender, EventArgs e)
        {
            Goods Goods = new Goods();
            Goods.Owner = this;
            Goods.Show();
        }

        private void toolStripMenuItem3_Click(object sender, EventArgs e)
        {
            UserManage userManage = new UserManage();
            userManage.Owner = this;
            userManage.Show();
        }

        


        private void 退出系统ToolStripMenuItem_Click_1(object sender, EventArgs e)
        {
            this.Dispose();
            this.Close();
            Application.Exit();
        }
    }
}
